.viewport {
  position: relative;
  height: 100vh;
  background-color: #f4f4f4;
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9;

    .wrap {
      display: flex;
      justify-content: center;
      height: 60rpx;
      line-height: 60rpx;
      background: transparent;

      .back {
        position: absolute;
        left: 20rpx;
        line-height: 60rpx;
      }

      .title {
        color: transparent;
      }
    }
  }

  .main {
    padding-bottom: 160rpx;
    background-color: #f4f4f4;

    .wait {
      box-sizing: content-box;
      display: flex;
      flex-direction: column;
      align-items: center;
      height: 220rpx;
      color: #fff;
      background-image: url(https://pcapi-xiaotuxian-front-devtest.itheima.net/miniapp/images/order_bg.png);
      background-size: cover;
      .status {
        font-size: 32rpx;
      }
      .margin {
        margin-bottom: 20rpx;
      }
      .price {
        display: flex;
        justify-content: center;
        width: 100%;
        font-size: 28rpx;
        .pay {
          margin-right: 30rpx;
        }
        .time {
          display: flex;
        }
      }

      .btn {
        padding: 0;
        margin: 0;
        height: 60rpx;
        width: 200rpx;
        line-height: 60rpx;
        color: #27ba9b;
        font-size: 26rpx;
        background: #fff;
        border-radius: 50rpx;
      }
    }

    .content {
      padding: 20rpx 20rpx 20rpx;

      .item-box {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100rpx;
        padding: 0 20rpx 0 80rpx;
        font-size: 26rpx;
        background: url(https://pcapi-xiaotuxian-front-devtest.itheima.net/miniapp/images/car.png)
          20rpx center / 50rpx no-repeat #fff;
        background-color: #fff;
        border-radius: 10rpx;
        .text {
          color: #6d6d6d;
        }

        .time {
          color: #8b8b8b;
        }
      }

      .address-box {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100rpx;
        font-size: 26rpx;
        padding: 0 20rpx 0 80rpx;
        background: url(https://pcapi-xiaotuxian-front-devtest.itheima.net/miniapp/images/locate.png)
          20rpx center / 50rpx no-repeat #fff;
        background-color: #fff;
        border-radius: 10rpx;

        .user-box {
          color: #6d6d6d;
          view {
            display: inline-block;
          }
          .user {
            margin-right: 10rpx;
          }
        }
        .address {
          color: #8b8b8b;
        }
      }

      .goods-wrap {
        margin: 20rpx 0;
        padding: 0 20rpx;
        background-color: #fff;
        .goods-box {
          border-bottom: 1px solid #eee;
          .good {
            display: flex;
            padding: 60rpx 0;

            border-radius: 10rpx;
            .image {
              .pic {
                height: 150rpx;
                width: 150rpx;
                border-radius: 10rpx;
              }
            }
            .meta {
              display: flex;
              flex: 1;
              flex-direction: column;
              justify-content: space-between;
              padding-left: 20rpx;
              height: 150rpx;
              .name {
                width: 100%;
                line-height: 1;
                font-size: 28rpx;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
              }
              .attrs {
                padding: 5rpx 10rpx;
                font-size: 24rpx;
                color: #888;
                background-color: #f7f7f8;
                border-radius: 5rpx;
              }
              .price-count {
                width: 100%;
                display: flex;
                justify-content: space-between;
                .price {
                  font-size: 28rpx;

                  .price-pay {
                    color: #cf4444;
                    margin-right: 10rpx;
                  }

                  .price-old {
                    font-size: 24rpx;
                    color: #999;
                    text-decoration: line-through;
                  }
                }

                .count {
                  font-size: 28rpx;
                }
              }
            }
          }
        }
        .info {
          padding: 20rpx 0;
          .item {
            display: flex;
            justify-content: space-between;
            font-size: 28rpx;
            line-height: 48rpx;
            color: #8f8e8e;
            .label {
              width: 240rpx;
              font-size: 28rpx;
            }
            .value {
              text-align: right;

              &.symbol {
                color: #333;
                &::before {
                  content: '¥';
                  font-size: 24rpx;
                }
              }
            }

            .should-pay {
              color: #cf4444;
              font-size: 36rpx;
              &::before {
                content: '¥';
                font-size: 80%;
              }
            }
          }
        }
      }

      .order-related {
        padding: 0 20rpx 20rpx;
        background-color: #fff;
        font-size: 28rpx;
        .title {
          height: 60rpx;
          line-height: 60rpx;
          font-size: 28rpx;
        }
        .item {
          display: flex;
          height: 40rpx;
          line-height: 40rpx;
          font-size: 24rpx;
          color: #8f8e8e;
          .copy {
            font-size: 20rpx;
            line-height: 40rpx;
            padding: 0 10rpx;
            margin-left: 10rpx;
            border: 1px solid #d3d2d2;
            border-radius: 20rpx;
          }
        }
      }
    }

    .no-wait {
      box-sizing: content-box;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 220rpx;
      color: #fff;
      background-image: url(https://pcapi-xiaotuxian-front-devtest.itheima.net/miniapp/images/order_bg.png);
      background-size: cover;
      .status {
        font-size: 32rpx;
      }

      .btns {
        display: flex;
        align-items: center;
        justify-self: center;

        .re-btn,
        .fahuo-btn,
        .confirm-btn {
          width: 200rpx;
          height: 60rpx;
          line-height: 60rpx;
          margin-top: 20rpx;
          font-size: 26rpx;
          text-align: center;
          color: #27ba9b;
          background-color: #fff;
          border-radius: 50rpx;
        }

        .fahuo-btn {
          margin-left: 20rpx;
          opacity: 0.5;
        }
        .confirm-btn {
          margin-left: 20rpx;
        }
      }
    }
  }

  .symbol {
    display: inline-block;
    &::before {
      content: '¥';
      font-size: 80%;
    }
  }

  .toolbar {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 160rpx;
    bottom: 0;
    left: 0;
    padding-right: 20rpx;
    background: #fff;

    .btn {
      width: 180rpx;
      height: 60rpx;
      line-height: 60rpx;
      font-size: 26rpx;
      text-align: center;
      border-radius: 50rpx;
      border: 1px solid #eee;
      // background: red;

      &.cancel-btn,
      &.pingjia-btn {
        margin-right: 20rpx;
      }

      &.pay-btn,
      &.confirm-btn {
        margin: 0;
        padding: 0;
        background: #27ba9b;
        color: #fff;
        border: none;
      }

      &.delete-btn {
        color: #cf4444;
        margin-right: 20rpx;
      }

      &.re-btn {
        padding: 0;
        color: #27ba9b;
        border: 1px solid #27ba9b;
      }
    }
  }
}
